# Contributor: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=colibri-core
pkgver=2.5.5
pkgrel=0
pkgdesc="NLP tool and C++ library to quickly and efficiently count and extract patterns from large corpus data"
arch="all !x86 !armv7 !armhf" #only 64-bit architectures are supported
options="!check"
url="https://proycon.github.io/colibri-core"
license="GPL-3.0-only"
makedepends="libtool bzip2-dev autoconf automake autoconf-archive"
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/proycon/$pkgname/archive/refs/tags/v$pkgver.tar.gz"

build() {
	sh ./bootstrap
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="c19e23e9a9d94afd7180256cfc588d709e18ddb30782bcedbf56d5f558a2e4d16be8599578ab31cc0331bef0838b819b2135104fb90963f8654eb7304860fa07  colibri-core-2.5.5.tar.gz"
